ComponentOne Data Source for Entity Framework
C1.LiveLinq Namespace / LiveViewExtensions Class / LiveMin Method / LiveMin<TSource>(View<TSource>) Method
The type of the elements of source.
A view containing the values to determine the minimum value of.

In This Topic
    LiveMin<TSource>(View<TSource>) Method
    In This Topic
    Computes the minimum value of a view of elements of a generic type.
    Syntax
    'Declaration
     
    
    Public Overloads Shared Function LiveMin(Of TSource)( _
       ByVal source As View(Of TSource) _
    ) As AggregationView(Of TSource,TSource)

    Parameters

    source
    A view containing the values to determine the minimum value of.

    Type Parameters

    TSource
    The type of the elements of source.

    Return Value

    A view representing the minimum of the values.
    Remarks

    If type TSource implements System.IComparable`1, this method uses that implementation to compare values. Otherwise, if type TSource implements System.IComparable, that implementation is used to compare values.

    It is possible to use standard LINQ query operator Min instead of LiveMax. Both are "live" in the sense that they are recomputed automatically when any change occurs in the source. The difference is that Min will every time loop through the entire source collection and aggregate it from scratch, whereas LiveMax will use a more performant algorithm, will maintain its value incrementally, processing only those source items that actually changed.

    See Also